package cn.al2.fast.lesson_2;

import java.util.concurrent.TimeUnit;

public class Job {
    public String one(String id) {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return String.format("线程：%s == one == id %s", Thread.currentThread().getId(), id);
    }

    public String two(String id) {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return String.format("线程：%s == two == id %s", Thread.currentThread().getId(), id);
    }

    public String three(String id) {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return String.format("线程：%s == three == id %s", Thread.currentThread().getId(), id);
    }
}
